// Copyright 2006 PR1ME. All Rights Reserved.
import java.util.BitSet;

/**
 * Overridding superclass to return logical size.
 */
public class MyBitSet extends BitSet {

  MyBitSet(int size) {
    super(size);
    this.size = size;
  }

  public int size() {
    return size;
  }

  public int length() {
    return size;
  }

  public Object clone() {
    MyBitSet result = (MyBitSet) super.clone();
    result.size = size;
    return result;
  }

  private int size;
}
